package com.example.dtos;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import com.example.exceptions.MissingAttributesException;
import com.example.models.Users;

public class UsersDTO {
	@NotNull(message="Username cannot be null")
	@Size(min = 6, max = 20, message="Username must have between 6 and 20 characters")
	private String username;
	@NotNull(message="Password cannot be null")
	@Size(min = 6, max = 50, message="Password must have between 6 and 50 characters")
	private String password;
	private boolean enabled;
	
	public UsersDTO(){}
	
	public UsersDTO(String username, String password, boolean enabled) {
		super();
		this.username = username;
		this.password = password;
		this.enabled = enabled;
	}
	
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public boolean isEnabled() {
		return enabled;
	}
	public void setEnabled(boolean enabled) {
		this.enabled = enabled;
	}

}
